@extends('layouts.admin')
@section('content')
        <div class="tpl-login">
            <div class="tpl-login-content">
                <span class="tpl-login-content-info">
                  创建一个新的管理员
              </span>


                <form class="am-form tpl-form-line-form" action="{{url('admin/user')}}" method="post">
					{{csrf_field()}}
                    <div class="am-form-group">
                        <input type="text" class="tpl-form-input" name="email" placeholder="邮箱">

                    </div>

                    <div class="am-form-group">
                        <input type="text" class="tpl-form-input" name="user_name" placeholder="用户名">
                    </div>

                    <div class="am-form-group">
                        <input type="password" class="tpl-form-input" name="user_pass" placeholder="请输入密码">
                    </div>

                    <div class="am-form-group">
                        <input type="password" class="tpl-form-input" id="user-name" placeholder="再次输入密码">
                    </div>
					 <div class="tpl-login-content-info">
						@if (count($errors) > 0)
							<div class="tpl-login-content-info">
								<ul style="color:red">
									@if(is_object($errors))
										@foreach ($errors->all() as $error)
											<li>提示：{{ $error }}</li>
										@endforeach
									@else
										<li>{{ session('errors') }}</li>
									@endif
								</ul>
							</div>
						@endif
					</div>

                    






                    <div class="am-form-group">
						<input type="submit" value="提交" style="height:35px;" class="am-btn am-btn-primary  am-btn-block tpl-btn-bg-color-success  tpl-login-btn"/>

                    </div>
                </form>
            </div>
        </div>
   @endsection